﻿using System;
using LightPersist.Storage;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace LightPersist.XmlStorageTests
{
	[TestClass]
	public class TestBinaryStorage : TestStorage
	{
		const string testFolderPrefix = "_test_";

		protected override IStorage CreateStorage()
		{
			lastConnectionString = testFolderPrefix + Guid.NewGuid();
			var storage = new BinaryStorage();
			return storage;
		}

		protected override void ReopenStorage()
		{
			base.ReopenStorage();
			sut = new BinaryStorage();
			sut.Connect(lastConnectionString);
		}

	}
}